import Vue from 'vue'
import Router from 'vue-router'
import Login from '../pages/Login/Login.vue'
import ADPicture from '../pages/ADPicture/ADPicture.vue'
import ClassManage from '../pages/ClassManage/ClassManage.vue'
import GoodsManage from '../pages/GoodsManage/GoodsManage.vue'
import Coupon from '../pages/Coupon/Coupon.vue'
import OrderList from '../pages/OrderList/OrderList.vue'
import AfterSaleList from '../pages/AfterSaleList/AfterSaleList.vue'
import UserList from '../pages/UserList/UserList.vue'
import AddList from '../pages/AddList/AddList.vue'
import FXSet from '../pages/FXSet/FXSet.vue'
import BonusDetail from '../pages/BonusDetail/BonusDetail.vue'
import PartnerList from '../pages/PartnerList/PartnerList.vue'
import Suggest from '../pages/Suggest/Suggest.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/login',
      component: Login
    },
    {
      path: '/',
      redirect: '/adpicture',
    },
    {
      path: '/adpicture',
      component: ADPicture,
      meta:{
        showSide:true
      }
    },
    {
      path: '/classmanage',
      component: ClassManage,
      meta:{
        showSide:true
      }
    },
    {
      path: '/goodsmanage',
      component: GoodsManage,
      meta:{
        showSide:true
      }
    },
    {
      path: '/coupon',
      component: Coupon,
      meta:{
        showSide:true
      }
    },
    {
      path: '/orderlist',
      component: OrderList,
      meta:{
        showSide:true
      }
    },
    {
      path: '/aftersalelist',
      component: AfterSaleList,
      meta:{
        showSide:true
      }
    },
    {
      path: '/userlist',
      component: UserList,
      meta:{
        showSide:true
      }
    },
    {
      path: '/addlist',
      component: AddList,
      meta:{
        showSide:true
      }
    },
    {
      path: '/fxset',
      component: FXSet,
      meta:{
        showSide:true
      }
    },
    {
      path: '/bonusdetail',
      component: BonusDetail,
      meta:{
        showSide:true
      }
    },
    {
      path: '/partnerlist',
      component: PartnerList,
      meta:{
        showSide:true
      }
    },
    {
      path: '/suggest',
      component: Suggest,
      meta:{
        showSide:true
      }
    },
  ]
})
